The Smart ComboBox Component > FSmartComboBox.getSharedObject()

 

FSmartComboBox.getSharedObject()

Availability

Macromedia Flash Player 6.

Usage

myCombo.getSharedObject();

Parameters

None.

Returns

The method getSharedObject returns the Shared Object that is used by the ComboBox to store its history.

Description

This method will return the Shared Object that the ComboBox uses to store its history. The Shared Object can then be used to save and store more data that will persist across user sessions. The component's history will be rebuilt to represent any data contained within the Shared Object passed to the method.

Example

The following example shows how the method getSharedObjects gets the Shared Object that the ComboBox component uses to store its history, then saves additional information to it.

var lso = myCombo.getSharedObject();
lso.data.userName = "Isabel";

See also

FSmartComboBox.setSharedObject